package org.example.projecttwo.entity.dto.common;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class BatchUpdateStatusDTO {
    @NotNull(message = "ID列表不能为空")
    @NotEmpty(message = "ID列表不能为空")
    private List<Long> ids;

    @NotNull(message = "状态值不能为空")
    @Min(value = 0, message = "状态值必须为0或1")
    @Max(value = 1, message = "状态值必须为0或1")
    private Integer isShow;
}
